package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class Privileges {

    private int beginIndex;
    private int endIndex;
    private ObjectPrivileges objectPrivileges;
    private ObjectName objectName;

    public Privileges(ObjectPrivileges objectPrivileges,
                      ObjectName objectName) {
        this.beginIndex = objectPrivileges.getBeginIndex();
        this.endIndex = objectName.getEndIndex();
        this.objectPrivileges = objectPrivileges;
        this.objectName = objectName;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ObjectPrivileges getObjectPrivileges() {
        return objectPrivileges;
    }

    public ObjectName getObjectName() {
        return objectName;
    }

}
